home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1110.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.2 KB  |  97 lines

  1. 20
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. FlushIni 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baFlushIni forces Windows to write an ini file to disk.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. baFlushIni( Filename )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String. 
  36. --- RECORDSEPARATOR ---
  37. Filename is the name of the ini file to flush.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Void.
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. Examples:
  50. --- RECORDSEPARATOR ---
  51.  
  52. --- RECORDSEPARATOR ---
  53. Director: 
  54. --- RECORDSEPARATOR ---
  55. baFlushIni( the moviePath & "data.ini" ) 
  56. --- RECORDSEPARATOR ---
  57. Authorware: 
  58. --- RECORDSEPARATOR ---
  59. baFlushIni( FileLocation ^ "data.ini" )
  60. --- RECORDSEPARATOR ---
  61.  
  62. --- RECORDSEPARATOR ---
  63. Notes:
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. This function is for use with the other ini file functions. When Windows writes an ini 
  68. --- RECORDSEPARATOR ---
  69. file it keeps it cached for a short time. This does not cause problems when using 
  70. --- RECORDSEPARATOR ---
  71. only the ini functions. However, if you want to write an ini file, then immediately do 
  72. --- RECORDSEPARATOR ---
  73. something else with it, say, encrypt it, then you should use this function to force 
  74. --- RECORDSEPARATOR ---
  75. Windows to write the file to disk before you use it. 
  76. --- RECORDSEPARATOR ---
  77. eg. 
  78. --- RECORDSEPARATOR ---
  79. baWriteIni( "data", "password", pw, iniFile ) -- write ini file 
  80. --- RECORDSEPARATOR ---
  81. baFlushIni( iniFile ) -- force it to disk 
  82. --- RECORDSEPARATOR ---
  83. baEncryptFile( iniFile, key ) -- encrypt it 
  84. --- RECORDSEPARATOR ---
  85. This functions is not needed if you are only using baWriteIni and baReadIni on your 
  86. --- RECORDSEPARATOR ---
  87. ini files.
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. See also:
  92. --- RECORDSEPARATOR ---
  93.  
  94. --- RECORDSEPARATOR ---
  95. baReadIni 
  96. --- RECORDSEPARATOR ---
  97. baWriteIni